package com.tom.demo.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
@ApiModel(value = "登录请求参数")
public class LoginUserDto {

    @ApiModelProperty(required = true, value = "用户账号")
    @NotBlank(message = "账号不能为空")
    private String username;

    @ApiModelProperty(required = true, value = "用户密码")
    @NotBlank(message = "密码不能为空")
    private String password;
}
